package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName
@ApiModel("分类信息")
public class Category {
    @TableId(value = "category_id",type = IdType.AUTO)
    @ApiModelProperty(value = "分类id")
    private int categoryId;
    @ApiModelProperty(value = "店铺id")
    private int shopId ;
    @ApiModelProperty(value = "父ID")
    private int parentId ;
    @ApiModelProperty(value = "分类名称")
    private String name ;
    @ApiModelProperty(value = "分类描述")
    private String description ;
    @ApiModelProperty(value = "分类地址{parent_id}-{child_id},...")
    private String path ;
    @ApiModelProperty(value = "状态 1:enable, 0:disable, -1:deleted")
    private int status ;
    @ApiModelProperty(value = "分类图标")
    private String icon ;
    @ApiModelProperty(value = "分类的显示图片")
    private String imgUrl ;
    @ApiModelProperty(value = "分类层级 从0开始")
    private Integer level ;
    @ApiModelProperty(value = "排序")
    private Integer seq ;
}
